package cyou.breathe.blog.folder.infrastructure.exception;

import cyou.breathe.blog.base.exception.ErrorCode;

/**
 * @author: breathe
 * @createTime: 2025-08-30
 */
public enum FolderErrorCode implements ErrorCode {
    ROOT_FOLDER_IS_EXIST("FOLDER_ERROR_CODE_0001", "根目录已存在"),
    FOLDER_IS_EXIST("FOLDER_ERROR_CODE_0002", "目录已存在"),
    FOLDER_NOT_EXIST("FOLDER_ERROR_CODE_0003", "目录不存在"),
    FOLDER_DELETE_FAILED("FOLDER_DELETE_FAILED", "目录删除失败")
    ;

    private String code;

    private String message;

    FolderErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
